package com.share.shrimpcolo.shoot03.sync;

public class Reload implements Runnable{
	private boolean flag = true;
	Clip clip = null;
	
	public Reload(Clip clip) {
		this.clip = clip;
	}
	
	@Override
	public void run() {
		//System.out.println("Reload runnable run() 1111");
		while(flag) {
			if(clip != null) {
				//System.out.println("Reload run() ===> add 2222");
				clip.add();
			}
			
			if(clip.getmClipNum() == 0) {
				flag = false;
			}
		}
	}//end run

}
